package org.larkdoc.model.entity;

import java.io.Serializable;
import java.util.Date;
/**
 * 角色与权限关系实体(对应数据库表)
 * 
 * @author  zhangpeijun[zhangpeijun1024@qq.com]
 * @version  [v1.0.1, 2017年10月17日]
 * @see  [相关类/方法]
 * @since  [产品/模块版本]
 */
public class RoleRelPermissions implements Serializable {
    /**
     * id
     * Column : role_rel_permissions.id
     *
     * @mbggenerated
     */
    private Integer id;

    /**
     * 权限类型:  0.功能模块(model_info);1.菜单(menu)；
     * Column : role_rel_permissions.per_type
     *
     * @mbggenerated
     */
    private Integer perType;

    /**
     * 角色id-角色ID
     * Column : role_rel_permissions.role_id
     *
     * @mbggenerated
     */
    private Integer roleId;

    /**
     * 权限对象id-权限对象ID
     * Column : role_rel_permissions.per_obj_id
     *
     * @mbggenerated
     */
    private Integer perObjId;

    /**
     * 权限URL-基于url做权限控制
     * Column : role_rel_permissions.per_url
     *
     * @mbggenerated
     */
    private String perUrl;

    /**
     * 权限值-示例：create,update
     * Column : role_rel_permissions.permissions
     *
     * @mbggenerated
     */
    private String permissions;

    /**
     * 数据状态-数据是否有效：0：无效,1：有效
     * Column : role_rel_permissions.is_valid
     *
     * @mbggenerated
     */
    private Integer isValid;

    /**
     * 创建时间
     * Column : role_rel_permissions.create_time
     *
     * @mbggenerated
     */
    private Date createTime;

    /**
     * 更新时间
     * Column : role_rel_permissions.update_time
     *
     * @mbggenerated
     */
    private Date updateTime;

    /**
     * 备注信息
     * Column : role_rel_permissions.remark
     *
     * @mbggenerated
     */
    private String remark;

    /**
     * 配置所属的应用系统
     * Column : role_rel_permissions.app_system
     *
     * @mbggenerated
     */
    private String appSystem;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table role_rel_permissions
     *
     * @mbggenerated
     */
    private static final long serialVersionUID = 1L;

    /**
     * Returns : id
     *
     * @return the value of role_rel_permissions.id
     *
     * @mbggenerated
     */
    public Integer getId() {
        return id;
    }

    /**
     * This method sets : id
     *
     * @param id the value for role_rel_permissions.id
     *
     * @mbggenerated
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * Returns : 权限类型:  0.功能模块(model_info);1.菜单(menu)；
     *
     * @return the value of role_rel_permissions.per_type
     *
     * @mbggenerated
     */
    public Integer getPerType() {
        return perType;
    }

    /**
     * This method sets : 权限类型:  0.功能模块(model_info);1.菜单(menu)；
     *
     * @param perType the value for role_rel_permissions.per_type
     *
     * @mbggenerated
     */
    public void setPerType(Integer perType) {
        this.perType = perType;
    }

    /**
     * Returns : 角色id-角色ID
     *
     * @return the value of role_rel_permissions.role_id
     *
     * @mbggenerated
     */
    public Integer getRoleId() {
        return roleId;
    }

    /**
     * This method sets : 角色id-角色ID
     *
     * @param roleId the value for role_rel_permissions.role_id
     *
     * @mbggenerated
     */
    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    /**
     * Returns : 权限对象id-权限对象ID
     *
     * @return the value of role_rel_permissions.per_obj_id
     *
     * @mbggenerated
     */
    public Integer getPerObjId() {
        return perObjId;
    }

    /**
     * This method sets : 权限对象id-权限对象ID
     *
     * @param perObjId the value for role_rel_permissions.per_obj_id
     *
     * @mbggenerated
     */
    public void setPerObjId(Integer perObjId) {
        this.perObjId = perObjId;
    }

    /**
     * Returns : 权限URL-基于url做权限控制
     *
     * @return the value of role_rel_permissions.per_url
     *
     * @mbggenerated
     */
    public String getPerUrl() {
        return perUrl;
    }

    /**
     * This method sets : 权限URL-基于url做权限控制
     *
     * @param perUrl the value for role_rel_permissions.per_url
     *
     * @mbggenerated
     */
    public void setPerUrl(String perUrl) {
        this.perUrl = perUrl == null ? null : perUrl.trim();
    }

    /**
     * Returns : 权限值-示例：create,update
     *
     * @return the value of role_rel_permissions.permissions
     *
     * @mbggenerated
     */
    public String getPermissions() {
        return permissions;
    }

    /**
     * This method sets : 权限值-示例：create,update
     *
     * @param permissions the value for role_rel_permissions.permissions
     *
     * @mbggenerated
     */
    public void setPermissions(String permissions) {
        this.permissions = permissions == null ? null : permissions.trim();
    }

    /**
     * Returns : 数据状态-数据是否有效：0：无效,1：有效
     *
     * @return the value of role_rel_permissions.is_valid
     *
     * @mbggenerated
     */
    public Integer getIsValid() {
        return isValid;
    }

    /**
     * This method sets : 数据状态-数据是否有效：0：无效,1：有效
     *
     * @param isValid the value for role_rel_permissions.is_valid
     *
     * @mbggenerated
     */
    public void setIsValid(Integer isValid) {
        this.isValid = isValid;
    }

    /**
     * Returns : 创建时间
     *
     * @return the value of role_rel_permissions.create_time
     *
     * @mbggenerated
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * This method sets : 创建时间
     *
     * @param createTime the value for role_rel_permissions.create_time
     *
     * @mbggenerated
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * Returns : 更新时间
     *
     * @return the value of role_rel_permissions.update_time
     *
     * @mbggenerated
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * This method sets : 更新时间
     *
     * @param updateTime the value for role_rel_permissions.update_time
     *
     * @mbggenerated
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * Returns : 备注信息
     *
     * @return the value of role_rel_permissions.remark
     *
     * @mbggenerated
     */
    public String getRemark() {
        return remark;
    }

    /**
     * This method sets : 备注信息
     *
     * @param remark the value for role_rel_permissions.remark
     *
     * @mbggenerated
     */
    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    /**
     * Returns : 配置所属的应用系统
     *
     * @return the value of role_rel_permissions.app_system
     *
     * @mbggenerated
     */
    public String getAppSystem() {
        return appSystem;
    }

    /**
     * This method sets : 配置所属的应用系统
     *
     * @param appSystem the value for role_rel_permissions.app_system
     *
     * @mbggenerated
     */
    public void setAppSystem(String appSystem) {
        this.appSystem = appSystem == null ? null : appSystem.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table role_rel_permissions
     *
     * @mbggenerated
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", perType=").append(perType);
        sb.append(", roleId=").append(roleId);
        sb.append(", perObjId=").append(perObjId);
        sb.append(", perUrl=").append(perUrl);
        sb.append(", permissions=").append(permissions);
        sb.append(", isValid=").append(isValid);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", remark=").append(remark);
        sb.append(", appSystem=").append(appSystem);
        sb.append("]");
        return sb.toString();
    }
}